import { Component, OnInit } from '@angular/core';
import { AppState } from './app.service';

/*
 * 根组件
 */
@Component({
  selector: 'my-app',
  template: `<router-outlet></router-outlet>`,
})
export class AppComponent implements OnInit {

  constructor(public appState: AppState) { }

  public ngOnInit() {
    console.log('Initial App State', this.appState.state);
  }

}
